<?php
namespace App\Models;

use App\Lib\Model;

class Teacher extends Model
{
    private $id;
    private $name;

    protected $table = 'teachers';

    public function __get($name)
    {
        if (property_exists(self::class, $name)) {
            return $this->$name;
        }
        return null;
    }

    public function __set($name, $value)
    {
        if (property_exists(self::class, $name)) {
            $this->$name = $value;
        }
    }
}
